package hezi.common;

import dz.common.TimeTool;

public class HZLog {
	public static final String INFO = "info";
	public static final String DEBUG = "debug";
	public static final String WARN = "warn";
	public static final String ERROR = "error";
	
	
	String id;
	String messge;
	String level;

	long timestamp;
	String runid;
	String timehuman;
	int seq;
	String position;
	
	public HZLog(String id, String messge, String level) {
		super();
		this.id = id;
		this.messge = messge;
		this.level = level;
		this.timestamp = System.currentTimeMillis();
		this.timehuman = TimeTool.getHHmmss8(timestamp); 
	}
	public HZLog() {
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return timehuman + "[" + level + "] " + id+" "+messge;
	}
	
	
	public String getId() {
		return id;
	}
	public String getMessge() {
		return messge;
	}
	public void setMessge(String messge) {
		this.messge = messge;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public long getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
	public String getRunid() {
		return runid;
	}
	public void setRunid(String runid) {
		this.runid = runid;
	}
	public String getTimehuman() {
		return timehuman;
	}
	public void setTimehuman(String timehuman) {
		this.timehuman = timehuman;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getSeq() {
		return seq;
	}
	public void setSeq(int seq) {
		this.seq = seq;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	
	
	
}
